using System;
using System.Collections.Generic;
using System.Text;
using AAM.BIZ;
using AAM;

namespace CMS.BIZ
{
    [DatabaseTable(TableName = "Controls",TableAlias="ct")]
    public class BizControl : BizObject
    {

        public static readonly ObjectType ObjectType = new ObjectType("BizControl");

        private int controlID = 0;
        private int pageID = 0;
        private int controlIndex = 0;
        private string controlPath = "";
        private int? contentID = null;

        public BizControl()
            : base(ObjectType, new object[] {0})
        {
        }
        [DatabaseRow(PrimaryKey=true,Identity=true)]
        public int ControlID
        {
            get { return controlID; }
            set { controlID = value; ID[0] = value; }
        }
        [DatabaseRow()]
        public int PageID
        {
            get { return pageID; }
            set { pageID = value; }
        }
        [DatabaseRow()]
        public int ControlIndex
        {
            get { return controlIndex; }
            set { controlIndex = value; }
        }
        [DatabaseRow()]
        public string ControlPath
        {
            get { return controlPath; }
            set { controlPath = value; }
        }
        [DatabaseRow()]
        public int? ContentID
        {
            get { return contentID; }
            set { contentID = value; }
        }

    }
}
